package com.mtsmda.webServices.documentStyle.javapoint;

import java.net.URL;

import javax.xml.namespace.QName;
import javax.xml.ws.Service;

public class GetAcronymClient {

	public static void main(String[] args) {
		try {
			URL urlWSDL = new URL(GetAcronymEndPoint.ACRONYM_URL + "?wsdl");
			QName qName = new QName(
					"http://javapoint.documentStyle.webServices.mtsmda.com/",
					"GetAcronymImplService");
			Service service = Service.create(urlWSDL, qName);
			GetAcronymI port = service.getPort(GetAcronymI.class);
			System.out.println(port.getAcronym("Artemov Ivan Denisovic"));

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}